package com.yx.fx.webApi.controller;


import com.yx.fx.webApi.entity.TEnterpriseInvestment;
import com.yx.fx.webApi.service.TEnterpriseInvestmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author pxb
 * @since 2021-09-17
 */
@RestController
@RequestMapping("/tEnterpriseInvestment")
public class TEnterpriseInvestmentController {

    @Autowired
    TEnterpriseInvestmentService tEnterpriseInvestmentService;

    @GetMapping("/findByEid/{eid}")
    public List<TEnterpriseInvestment> findByEid(@PathVariable String eid){
        return  tEnterpriseInvestmentService.findByEid(eid);
    };


}

